package com.dongdong.service;

import com.dongdong.model.TbSeller;
import com.dongdong.utils.PageBean;
import com.dongdong.utils.PageResult;
import com.dongdong.utils.Result;
import com.dongdong.vo.SellerVO;

import javax.servlet.http.HttpServletRequest;

public interface SellerService {
    TbSeller getSellerByName(String username);

    SellerVO getSeller(HttpServletRequest request);

    void updateSeller(SellerVO sellerVO);


    Result updatePwd(String oldPwd, String newPwd, HttpServletRequest request);

    void addSeller(TbSeller seller);

    PageResult<SellerVO> getSellerPage(PageBean<SellerVO> pageBean);

    void updateStatus(String status, String sellerId);
}
